package com.example.springaop.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User:xieChao
 * Date:2023/1/8 22:07
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/sayhi")
    public String sayHi(){
        System.out.println("sayHi 被执行了");
        return "hello world";
    }
    @RequestMapping("/sayhello")
    public String sayHello(){
        System.out.println("sayHello 被执行了");
        return "world hello";
    }
}
